CygNet CAS View Control – Properties

The following table lists and describes properties of the CygNet CAS View Control as they are exposed on the Property Sheet and/or in the tool's script editor. Many of these properties are also exposed on a tool's (OCXProperties) property sheets. A property's name sometimes varies depending on where it appears.

Browse by letter:     [A]     [B]     [C]     [D]     [E]     [F]     [G]     [H]     [I]     [L]     [O]     [P]     [R]     [S]     [T]     [U]     [V]     [W]

Property Sheet Script Editor Description

AllowChanges

AllowChanges

Returns/sets whether or not runtime user changes are allowed.

Appearance

Appearance

Appearance specifies whether the object boundary (graph, cell in the grid, view, etc.) will have a 3D effect or a flat appearance. Options are 0 — Flat or 1 — 3D. Default is 0 — Flat.

BackgroundColorOverride

BackgroundColorOverride

Returns/sets the background color override.

BlinkIcon

BlinkIcon

Enables/disables blinking of the icon on unacknowledged alarms.

Note: Alarm blinking is available only for points created using the CygNet Enhanced Point Scheme (Point Scheme number 1 - 15). The blinking feature is not available for points created using the default CygNet Standard Point Scheme (Point Scheme number 0).

BlinkLeft

BlinkLeft

Enables/disables blinking of the leftmost textual column on unacknowledged alarms.

Note: Alarm blinking is available only for points created using the CygNet Enhanced Point Scheme (Point Scheme number 1 - 15). The blinking feature is not available for points created using the default CygNet Standard Point Scheme (Point Scheme number 0).

BlinkUnack

BlinkUnack

Enables/disables blinking of unacknowledged alarms.

Note: Alarm blinking is available only for points created using the CygNet Enhanced Point Scheme (Point Scheme number 1 - 15). The blinking feature is not available for points created using the default CygNet Standard Point Scheme (Point Scheme number 0).

BorderStyle

BorderStyle

BorderStyle specifies the border style of the object boundary.

Most tools use one of these sets of options:

  • 0 — ibsNone, 1 — ibsRaised, or 2 — ibsLowered, and the default is 0 — ibsNone
  • 0 — None or 1 — Fixed Single, and the default is 0 — None

The Panel Switch Tool uses these options:

  • 0 — ibsLine, 1 — ibsRaised, 2 — ibsLowered, 3 — ibsTop, and 4 — ibsNone, and the default is 0 — ibsLine.

For the Box, Frame, and Text tools, the BorderStyle property specifies the style of the object’s foreground lines. The options are:

  • 0 — Normal, 1 — 3D, 2 — Sunken, 3 — Raised, and 4 — None
  • The default for the Box Tool is 0 — Normal. The default for the Frame Tool is 1 — 3D. The default for the Text Tool is 4 — None.

    If you use 2 — Sunken or 3 — Raised and the effect is not visible, change the object’s HiliteColor.

    If you use 0 — Normal, 2 — Sunken, or 3 — Raised, you can set the border width using the PenWidth property.

For TheFrame/TheView, the BorderStyle property specifies both the style of the object's border and whether the object can be resized by the user in Run mode. The default is 0 — Thin, which means the border is thin and the size is static. The other possible option is 1 — Resizing, which means the border is thicker and can be resized.

See also Appearance.

Script subtype is integer.

Bottom

N/A

Bottom specifies the distance (in pixels) from the top of TheView’s scroll region to the bottom of the object. You can dynamically change this value in Edit mode if you use the mouse to enlarge or shrink the object. See Sizing and Positioning Objects.

ButtonsCol1

ButtonsCol1

Enables/disables the first buttons column.

ButtonsCol1Action

ButtonsCol1Action

Returns/sets the action associated with clicking a button in the first buttons column. Possible values for this property are:

  • 0 — Acknowledge alarm
  • 1 — Launch Alarm Suppression Settings dialog
  • 2 — Hide alarm
  • 3 — Clear alarm
  • 4 — Launch Alarm History dialog box
  • 5 — Launch a Point Properties dialog box
  • 6 — Fires the OnButtonClick event.

ButtonsCol1Text

ButtonsCol1Text

Returns/sets the button text for the first buttons column.

ButtonsCol2

ButtonsCol2

Enables/disables the last buttons column.

ButtonsCol2Action

ButtonsCol2Action

Returns/sets the action associated with clicking a button in the last buttons column. Possible values for this property are:

  • 0 — Acknowledge alarm
  • 1 — Launch Alarm Suppression Settings dialog box
  • 2 — Hide alarm
  • 3 — Clear alarm
  • 4 — Launch Alarm History dialog box
  • 5 — Launch Point Properties dialog box
  • 6 — Fires the OnSecondButtonClick event.

ButtonsCol2Text

ButtonsCol2Text

Returns/sets the button text for the last buttons column.

CasCtrlAttributesDescriptions

CasCtrlAttributesDescriptions

Returns/sets the XML representing the descriptions of custom attributes.

CasCtrlAttributesValues

CasCtrlAttributesValues

Returns/sets the XML representing the values of custom attributes.

ColorMode

ColorMode

Returns/sets the color mode (0 — single color mode, 1 — dual color mode).

Columns

Columns

Specifies the number of columns that are defined for the object or the XML that represents the list of displayed columns. Use the OCX Properties dialog box to select.

For a WatchList Tool, Columns specifies the identifier of each column. Items are semicolon separated.

ContextMenuXML

ContextMenuXML

ContextMenuXml identifies an XML string that defines the contents and Event IDs for the object’s custom context menu. See Custom Context Menus for more information about configuring custom menus for ActiveX Controls.

ActiveX Control Example

The following example includes one new menu item (New Item).

Copy

ContextMenuXML for Event Summary Control

<CustomContextMenu>
    <items>
        <ContextMenuDef>
            <itemsHidden/>
            <items>
                    <MenuItem Disable1="false" Disable2="false" Disable3="false" Description="New Context Menu Item (at bottom)" EventID="NEWID"/>
            </items>
        </ContextMenuDef>
    </items>
</CustomContextMenu>

CAS View Control Example

The CAS View Control includes additional options to hide default menu items. The following example includes one new menu item (New Item) and one hidden item (Suppress…). See CAS View Control.

Copy
ContextMenuXML for CAS View Control
<CustomContextMenu>
    <items>
        <ContextMenuDef>
            <itemsHidden>
                <DefaultMenuItem MenuId="1021" Desc="Suppress..." Type="0"/>
            </itemsHidden>
            <items>
                <MenuItem Disable1="true" Disable2="false" Disable3="false" Description="New Item" EventID="NEWID"/>
            </items>
        </ContextMenuDef>
    </items>
</CustomContextMenu>

CursorPointer

N/A

For TheView, CursorPointer selects the cursor icon that appears when you mouse over objects.

For objects, CursorPointer selects the cursor icon for the instance of the object. The object’s cursor pointer takes precedence over TheView’s cursor pointer.

The default is 0 — Default. For TheView, this is an arrow. For other objects, the icon configured for TheView is used. Other options are:

  • 1 — Arrow
  • 2 — IBeam
  • 3 — Cross
  • 4 — UpArrow
  • 5 — NoDrop
  • 6 — Help
  • 99 — HotSpot
  • 100 — Timer

Script subtype is long.

CustomIconColor

CustomIconColor

Returns/sets the icon color mode (False — foreground color, True — background color).

DClickProperties

DClickProperties

Returns/sets whether or not double-clicking a row will launch a Point Properties dialog box.

EmptySpaceColorOverride

EmptySpaceColorOverride

Returns/sets the empty space color override. The empty space is the area to the right and below the CAS View Control grid.

Enable

N/A

Enable specifies whether the user is able to interact with the object. Options are 0 — No and 1 — Yes. The default is 1 — Yes. If set to 0 — No, the object is still visible but its context menu is disabled.

Other options:

  • Completely hide the object in run mode using the Visible property.
  • Display the object but hide its [DisplayItem] using the [DisplayElement] property.

Filter

Filter

Specifies the XML representing the alarm filter.

FlexHorizontal

N/A

FlexHorizontal specifies whether the object moves or resizes horizontally or is unchanged when TheFrame is resized. Options are:

  • 0 — None (no resizing occurs)
  • 1 — Shift (the object is shifted)
  • 2 — Expand (the object expands or shrinks the same number of pixels as TheFrame)
  • 3 — Proportional (the object expands or shrinks proportionally to TheFrame)

Default is 0 — None.

FlexVertical

N/A

FlexVertical specifies whether the object moves or resizes vertically when TheFrame is resized. Options are:

  • 0 — None (no resizing occurs)
  • 1 — Shift (the object is shifted)
  • 2 — Expand (the object expands or shrinks the same number of pixels as TheFrame)
  • 3 — Proportional (the object expands or shrinks proportionally to TheFrame)

Default is 0 — None.

FocusColor

FocusColor

Returns/sets the focus rectangle color.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

FocusWidth

FocusWidth

Returns/sets the focus rectangle border width.

Font

Font

Font specifies the font for the object.

For TheView, this property specifies the default font for text-based objects.

For other objects, it specifies the font for the instance of the object. The object’s font takes precedence over the font set for TheView.

Click to view the Font dialog box, which you can use to configure the font. The default is MS Shell Dlg (MS Sans Serif, regular, 8 pt). Script subtype is string.

Note: In script, you can set font properties using "-13, Arial" for example.

ForegroundColorOverride

ForegroundColorOverride

Returns/sets the foreground override color.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

Group

N/A

Group groups objects into a discrete sequence that can be navigated using the arrow keys.

Options are 0 — No and 1 — Yes. The default is 0 — No.

To use this property:

1. Add objects that use the Group property to a screen.

2. Position them as you like (typically in a spatial configuration that reflects the order in which they were added to the screen).

3. Decide where in the spatial configuration logical groups begin and end.

4. Mark the beginning of a group by setting the Group property to 1 — Yes for the first object in the group.

5. Set Group set to 0 — No for other objects in the group.

The group is made up of all objects that 1) are added sequentially after an object with a Group property set to 1 — Yes and 2) that use a Group property set to 0 — No. A group's arrow navigation sequence reflects the order in which its objects were added to a screen.

This property is not related to the Draw > Group option in the CygNet Studio menu bar. This property might not be suited for use with all tools that include the Group property.

Script subtype is long.

See also Tabstop.

HelpContextID

N/A

HelpContextID specifies the object’s help identifier for context-sensitive help. TheFrame’s WhatsThisHelp must be enabled.

Script subtype is long.

IconPathAck

IconPathAck

Returns/sets the path to the custom Acknowledged icon.

IconPathOos

IconPathOos

Returns/sets the path to the custom Out-of-Service icon.

IconPathUnack

IconPathUnack

Returns/sets the path to the custom Unacknowledged icon.

IconPathUnknown

IconPathUnknown

Returns/sets the path to the custom Unknown icon.

Layer

N/A

Layer identifies the layer on which the object resides. Script subtype is Boolean.

Left

N/A

Left specifies the distance (in pixels) from the left edge of TheView’s scroll region to the left edge of the object. See Sizing and Positioning Objects.

(ObjectCode)

N/A

(ObjectCode) specifies a unique identifier of the object. You can enter up to 39 characters. Valid characters are A-Z, 0-9, and underscore (_). Spaces are not allowed. The default is the object name and the numeric instance. Script subtype is string.

(OCXProperties)

N/A

Displays the OCXProperty dialog box unique to the object.

OverrideBackgroundColors

OverrideBackgroundColors

Enables/disables background color override.

OverrideColors

OverrideColors

Enables/disables text color override.

OverrideEmptySpaceColor

OverrideEmptySpaceColor

Enables/disables empty space color override. The empty space is the area to the right and below the CAS View Control grid.

OverrideFocusColors

OverrideFocusColors

Enables/disables focus color override.

OverrideForegroundColors

OverrideForegroundColors

Enables/disables foreground color override.

PropertiesXml

PropertiesXml

Returns/sets the XML representing the grid properties.

Right

N/A

Right specifies the distance (in pixels) from the left edge of TheView’s scroll region to the right edge of the object. See Sizing and Positioning Objects.

RowHeight

RowHeight

Returns/sets the default row height.

SelectionBackgroundColor

SelectionBackgroundColor

Returns/sets the multi-selection background color.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

SelectionForegroundColor

SelectionForegroundColor

Returns/sets the multi-selection foreground color.

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

ShowGridLines

ShowGridLines

Enables/disables grid lines.

ShowIcon

ShowIcon

Enables/disables alarm icon visibility.

ShowLineColor

ShowLineColor

Enables/disables entire row alarm coloring (i.e. if this property is set to True, the entire row will be shown in the row’s alarm color).

SiteServices

SiteServices

Returns/sets the semicolon-delimited list of CAS Site.Services.

Sorting

Sorting

Returns/sets the XML representing the default sorting mode.

SortRuntime

SortRuntime

Enables/disables runtime sorting.

Sounds

Sounds

Returns/sets the XML representing the sound configuration.

Tabstop

N/A

Tabstop specifies whether the focus stops on the object when you use the Tab key to navigate between objects (in other words, enables the object as a tab stop). Options are 0 — No and 1 — Yes. Default is 1 — Yes.

Script subtype is long.

See also Group and Tab Order.

Note: To set the tab order, use the Objects option on the Layout menu.

Tag

N/A

Tag is an extra field for application-specific purposes. Does not specify a CygNet point. Default is blank. Script subtype is string.

TooltipString

TooltipString

Returns/sets the tokenized tooltip string.

Top

N/A

Top specifies the distance (in pixels) from the top of TheView’s scroll region to the top of the object. See Sizing and Positioning Objects.

UseCustomIconAck

UseCustomIconAck

Enables/disables the custom Acknowledged icon.

UseCustomIconOos

UseCustomIconOos

Enables/disables the custom Out-of-Service icon.

UseCustomIconUnack

UseCustomIconUnack

Enables/disables the custom Unacknowledged icon.

UseCustomIconUnknown

UseCustomIconUnknown

Enables/disables the custom Unknown icon.

Visible

N/A

Visible secifies whether the object is visible in Run mode. Options are 0 — No or 1 — Yes. Default is 1 — Yes.

Note: Objects are always visible in Edit mode, regardless of how this property value is set.

You can also:

WrapColumns

WrapColumns

Enables/disables column word wrap.

Back to top